package cn.yitun.chat.yitunserverimapicore.business.contact.service;

import cn.yitun.chat.yituncommonmessage.result.ResultMessage;
import cn.yitun.chat.yitunservercommonlib.crud.yitun.CrudService;
import cn.yitun.chat.yitunservercommonlib.dataentity.dto.contact.ContactAddApplyDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.dto.contact.ContactAddVerifyAnswerDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.dto.contact.ContactAddVerifyQuestionDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.dto.userchat.ChatDataDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.po.contact.ContactAddVerifyQuestionInfo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.contact.ContactAddVerifyQuestionVo;

import java.util.List;

/**
 * 
 * Date 2019-01-20 17:46:44<br>
 * Description 请问添加为联系人相关处理
 *
 * @author yitun<br>
 * @version 1.1
 */
public interface ContactAddService
		extends CrudService<ContactAddVerifyQuestionDto, ContactAddVerifyQuestionInfo, ContactAddVerifyQuestionVo>{


	/**
	 * 
	 * Date 2019-01-20 17:55:07<br>
	 * Description 获取用户被添加为联系人的验证设置
	 * 
	 * @param query
	 * @return
	 * @author yitun<br>
	 * @version 1.1
	 */
	ResultMessage getContactAddVerifySetting(ChatDataDto query);

	/**
	 * 
	 * Date 2019-01-20 17:58:09<br>
	 * Description 处理添加为好友的请求
	 * 
	 * @param currentUserId
	 * @param apply
	 * @return
	 * @author yitun<br>
	 * @version 1.1
	 */
	ResultMessage userAddApply(Long currentUserId, ContactAddApplyDto apply);

	/**
	 * 添加用户回复
	 * @param key
	 * @param response
	 * @return
	 */
	ResultMessage userAddResponse(Long key, ContactAddApplyDto response);

}
